# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=aubio
pkgver=0.4.9
pkgrel=0
pkgdesc="tool designed for the extraction of annotations from audio signals"
url="https://aubio.org"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	ffmpeg4-dev
	fftw-dev
	jack-dev
	libsamplerate-dev
	libsndfile-dev
	python3
	"
subpackages="$pkgname-static $pkgname-dev"
source="https://aubio.org/pub/aubio-$pkgver.tar.bz2
	unversioned-python.patch
	"

build() {
	python3 waf configure --prefix=/usr
}

check() {
	# The waf file does not have a check target but the tests are run during the
	# package() function
	:
}

package() {
	python3 waf install --destdir="$pkgdir"
}

sha512sums="0cb81bb4b15051db3f3f4d160d500af56fdfb237e0a74e3f366f53c2870030aa0a7cee8469a611a9694c36b8866d3d42ffb48241c999de08f3fee43e6d903130  aubio-0.4.9.tar.bz2
08ef8497caec4a6025bfada1e7718469943f71e1847d2b340731483d6b396da7d367b1a180f87d70590109bfe2e7bd74141aebc458c607f5f96fd42e618e7ea7  unversioned-python.patch"
